<tagLib name="strends" />
<include file="Public:header" />
<style type="text/css">
	.tags_ul li{
		float:left;
		margin: 5px 0 0 5px;
		padding: 5px 5px 4px 5px;
		border: solid 1px #999;
		white-space: nowrap;
	}
</style>
<script>
	function showtype(typeid){
		if(typeid==1){
			$(".content").hide();
		}else{
			$(".content").show();
		}
	}
</script>
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:Cookie::get('returnUrl')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/update')}" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">	
	<tr>
		<th width="150">{%SHOW_TYPE}</th>
		<td>
			<input type="radio" name="show_type" <if condition="$vo['show_type'] eq 0">checked=checked</if> value="0" onchange="showtype(1)"/>{%SHOW_TYPE_1}
			<input type="radio" name="show_type" <if condition="$vo['show_type'] eq 1">checked=checked</if> value="1" onchange="showtype(2)"/>{%SHOW_TYPE_2}
		</td>
	</tr>
	<tr class="grid" >
		<th>{%GRID}</th>
		<td>
			<textarea class="areainput" name="grid" rows="30">{$vo.grid}</textarea>
		</td>
	</tr>	
	<tr class="content" <if condition="$vo['show_type'] eq 0">style="display:none;"</if> >
		<th>{%TITLE}</th>
		<td>
			<input type="text" class="textinput" name="title" style="width:460px;" value="{$vo.title}"/>
		</td>
	</tr>
	<tr class="content" <if condition="$vo['show_type'] eq 0">style="display:none;"</if> >
		<th>{%CURL}</th>
		<td>
			<input type="text" class="textinput" name="curl" style="width:460px;" value="{$vo.curl}"/>
		</td>
	</tr>
	<tr class="content" <if condition="$vo['show_type'] eq 0">style="display:none;"</if> >
		<th>{%IMGS}</th>
		<td>
			<input type="file" class="textinput" name="imgs" /><a href="/res/{$vo.imgs}" target="_blank">{%VIEW}</a>
		</td>
	</tr>
	<tr>
		<th>{%SORT}</th>
		<td>
			<input type="text" class="textinput" name="sort" rows="5" value="{$vo.sort}"/>
		</td>
	</tr>
	
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="hidden" name="id" value="{$vo.id}" />
			<input type="submit" class="submit_btn" value="{%SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>

<include file="Public:footer" />